package org.hxyjs.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.hxyjs.entity.OrderForm;
import org.hxyjs.entity.OrderFormExample;

public interface OrderFormMapper {
    long countByExample(OrderFormExample example);

    int deleteByExample(OrderFormExample example);

    int deleteByPrimaryKey(String urno);

    int insert(OrderForm record);

    int insertSelective(OrderForm record);

    List<OrderForm> selectByExample(OrderFormExample example);

    OrderForm selectByPrimaryKey(String urno);

    List<OrderForm> getOrderFormByPage(Map<String, Object> map);

    String getMaxUrno( String urnobegin);

    /**
     * 饭店查询饭店订单带上用户
     * @param rno
     * @return
     */

    List<OrderForm> selectOrderFormWithUserByrno(String rno);

    List<OrderForm> selectOrderByUnoWithOrderItem(String uno);

    int updateByExampleSelective(@Param("record") OrderForm record, @Param("example") OrderFormExample example);

    int updateByExample(@Param("record") OrderForm record, @Param("example") OrderFormExample example);

    int updateByPrimaryKeySelective(OrderForm record);

    int updateByPrimaryKey(OrderForm record);
}